<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="theme-color" content="#000000">

	<title></title>
	<!-- set `maximum-scale` for some compatibility issues -->
	<!-- 强制显示方式 -->
	<meta name="viewport"
		content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui, viewport-fit=cover">
	<!-- 允许全屏 -->
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<!-- 顶端状态条样式 -->
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<!-- 忽略将数字变为电话号码 -->
	<meta content="telephone=no" name="format-detection">
	<!-- uc强制竖屏 -->
	<meta name="screen-orientation" content="portrait">
	<!-- qq强制竖屏 -->
	<meta name="x5-orientation" content="portrait">
	<!-- uc强制全屏 -->
	<meta name="full-screen" content="yes">
	<!-- qq强制全屏 -->
	<meta name="x5-fullscreen" content="true">
	<!-- uc应用模式 -->
	<meta name="browsermode" content="application">
	<!-- qq应用模式 -->
	<meta name="x5-page-mode" content="app">
	<!-- windows phone 点击无高光 -->
	<meta name="msapplication-tap-highlight" content="no">
	<!-- <script src="//cdn.jsdelivr.net/npm/eruda"></script> -->

	<script>
		// eruda.init();
		//version1.0
		var winWidth = window.innerWidth;
		var winHeight = window.innerHeight;
		var perRemPx = document.getElementsByTagName("html")[0].clientWidth / 7.5;
		var u = navigator.userAgent;
		PhoneType()
		window.addEventListener("resize", function () {
			perRemPx = document.getElementsByTagName("html")[0].clientWidth / 7.5;
			document.getElementsByTagName("html")[0].style.fontSize = perRemPx + "px";
		});
		document.getElementsByTagName("html")[0].style.fontSize = perRemPx + "px";
		window.onload = function () {
			// 阻止双击放大
			var lastTouchEnd = 0;
			document.addEventListener('touchstart', function (event) {
				if (event.touches.length > 1) {
					event.preventDefault();
				}
			});
			document.addEventListener('touchend', function (event) {
				var now = (new Date()).getTime();
				if (now - lastTouchEnd <= 300) {
					event.preventDefault();
				}
				lastTouchEnd = now;
			}, false);

			// 阻止双指放大
			document.addEventListener('gesturestart', function (event) {
				event.preventDefault();
			});
		}
		// if ('addEventListener' in document) {
		//   document.addEventListener('DOMContentLoaded', function() {
		//     FastClick.attach(document.body);
		//   }, false);
		// }
		if (!window.Promise) {
			document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"' +
				'>' + '<' + '/' + 'script>');
		}

		function PhoneType() {
			document.getElementByTagName = function (body) {

			}
			if (u.indexOf("Android") > -1 || u.indexOf("Linux") > -1) {
				if (window.ShowFitness !== undefined) {
					document.getElementByTagName('body')[0].overflow = 'hidden'
					document.getElementByTagName('html')[0].overflow = 'hidden'
				}
			}
		}

	</script>
</head>

<body>
	<div id="root"></div>
</body>
<script>
	if (/MQQBrowser\/[1-8]\./i.test(navigator.userAgent) &&
		/HUAWEI/i.test(navigator.userAgent)) {
		document.body.style.position = "absolute"
		document.body.style.top = "0"
		document.body.style.left = "0"
		document.body.style.right = "0"
		document.body.style.bottom = "95px"
		document.body.style.transform = "translate3D(0,0,0)"
	}

	const isIphonex = () => {
		if (typeof window !== 'undefined' && window) {
			return /iphone/gi.test(window.navigator.userAgent) && window.screen.height >= 812;
		}
		return false;
	};

</script>

</html>